package com.css.msgcenter.server;

import com.css.msgcenter.server.imp.EmailPusher;
import com.css.msgcenter.server.imp.ImPusher;
import com.css.msgcenter.server.imp.PhonePusher;
import com.css.msgcenter.server.imp.WxPusher;


public class PushFactory {

	public static IPusher create( String msgType )
	{	
		IPusher p = null;
		if(Constants.EMAIL.equals(msgType))
			p = new EmailPusher(); 
		else if(Constants.IM.equals(msgType))
			p = new ImPusher(); 
		else if(Constants.PHONE.equals(msgType))
			p = new PhonePusher();
		else if(Constants.WX.equals(msgType))
			p = new WxPusher();
		return p;
		
	}
	
	
}
